package com.cgq.base.entity;

import java.util.Date;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@MappedSuperclass
public class Base {
	/**名称*/
	protected String name;
	/**创建时间*/
	protected Date dateCre;
	/**更新时间*/
	protected Date dateUpd;
	/**创建用户*/
	protected String userCre;
	/**更新用户*/
	protected String userUpd;
	/**备注*/
	protected String remark;
	
	@Column(name = "name",length=50)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date_cre",updatable=false)
	public Date getDateCre() {
		return dateCre;
	}
	public void setDateCre(Date dateCre) {
		this.dateCre = dateCre;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date_upd")
	public Date getDateUpd() {
		return dateUpd;
	}
	public void setDateUpd(Date dateUpd) {
		this.dateUpd = dateUpd;
	}
	@Column(name = "user_cre",length=50,updatable=false)
	public String getUserCre() {
		return userCre;
	}
	public void setUserCre(String userCre) {
		this.userCre = userCre;
	}
	@Column(name = "user_upd",length=50)
	public String getUserUpd() {
		return userUpd;
	}
	public void setUserUpd(String userUpd) {
		this.userUpd = userUpd;
	}
	@Column(name = "remark",length=500)
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public Map<String, Object> toMap(){
		return null;
	}
}
